<div class="topurl">
        	<span class="left">
            	Bạn đang xem: <a href="<?php echo base_url();?>"><b>Trang chủ</b></a>  &raquo; <a href="<?php echo base_url().'gian-hang';?>"><b>Gian hàng</b></a> &raquo; <a href="<?php echo base_url().'gian-hang/company/'.$products_info[0]->company_name_link;?>" class="current"><b><?php echo $products_info[0]->company_name;?></b></a>
            </span>
            <span class="right">
            	<span>Hỗ trợ bán hàng:</span> 
            	<?php if(isset($support) && $support != null) {?>
                <?php foreach($support as $k => $v) {?>            		
            		<a href="ymsgr:sendim?<?php echo $v->yahoo;?>" title="<?php echo $v->yahoo;?>">	                            	
                    	<img src="http://opi.yahoo.com/online?u=<?php echo $v->yahoo;?>&t=1" title="Chat với <?php echo $v->yahoo;?>" alt="Chat với <?php echo $v->yahoo;?>" />
                    </a> 
            	<?php }?>
            	<?php }?>
                <img src="<?php echo img_link('i-phone.gif');?>" title="" alt="" /> <span><b>043 824 3536</b> | <b>0979 899 100</b></span>
            </span>
        </div>
        <div class="main">
        	<div id="sidebar">
            	<h2 class="help"><a href="#">Hướng dẫn mua hàng</a></h2>
                <div class="b-sidebar">
                	<h2>Chọn Thương hiệu</h2>
                    <ul class="thuonghieu">
                    	<?php if(isset($company) && $company != null) {?>
                    		<?php foreach($company as $k => $v) {?>
                    			<li>
                    				<a href="<?php echo base_url().'gian-hang/company/'.$v->name_link.'.html'?>" title="<?php echo $v->name;?>"><?php echo $v->name;?></a> 
                    				<?php $total_products = $this->home_model->count_product_by_company($v->id);?>
                    				<font class="number">(<?php echo $total_products[0]->sum_products;?>)</font>
                    			</li>                        
                        	<?php }?>
                        <?php }?>
                    </ul>
                </div>
                <div class="b-sidebar">
                	<h2>Chọn theo giá</h2>
                    <ul class="price">
                    	<li>
                    		<a href="<?php echo base_url().'gian-hang/price_max/0-5.html'?>">Dưới 5 triệu</a>
                    		<?php $total_products = $this->home_model->count_all_products_by_price(0,5);?> 
                    		(<?php echo $total_products[0]->sum_products;?>)
                    	</li>
                        <li>
                        	<a href="<?php echo base_url().'gian-hang/price_max/5-7.html'?>">5 triệu - 7 triệu</a> 
                        	<?php $total_products = $this->home_model->count_all_products_by_price(5,7);?> 
                    		(<?php echo $total_products[0]->sum_products;?>)
                        </li>
                        <li>
                        	<a href="<?php echo base_url().'gian-hang/price_max/7-10.html'?>">7 triệu - 10 triệu </a> 
                        	<?php $total_products = $this->home_model->count_all_products_by_price(7,10);?> 
                    		(<?php echo $total_products[0]->sum_products;?>)
                        </li>
                        <li>
                        	<a href="<?php echo base_url().'gian-hang/price_max/10-12.html'?>">10 triệu - 12 triệu</a> 
                        	<?php $total_products = $this->home_model->count_all_products_by_price(10,12);?> 
                    		(<?php echo $total_products[0]->sum_products;?>)
                        </li>
                        <li>
                        	<a href="<?php echo base_url().'gian-hang/price_max/12-0.html'?>">Trên 12 triệu </a> 
                        	<?php $total_products = $this->home_model->count_all_products_by_price(12,0);?> 
                    		(<?php echo $total_products[0]->sum_products;?>)
                        </li>
                    </ul>
                </div>
                 
                <div class="b-sidebar">
                	<h2>Công năng sử dụng</h2>
                    <ul class="price">
                    	<?php if(isset($utilities) && $utilities != null) {?>
	                    <?php foreach($utilities as $k => $v) {?>
	                    	<li>
	                    		<a href="<?php echo base_url().'gian-hang/su-dung/'.$v->name_link.'.html'?>" title="<?php echo $v->name;?>">
	                    			<?php echo $v->name;?>
	                    		</a>
	                    		<?php $total_products = $this->home_model->count_products_by_utilities_id($v->id);?> 
	                    			(<?php echo $total_products[0]->sum_products;?>)
	                    	</li>
	                        <?php }?>                        
	                    <?php }?>
                    </ul>
                </div>
                
                <?php if(isset($question_pro) && count($question_pro) >0 ) {?>
                <div class="b-left-sp">
                	<span class="title">Câu hỏi liên quan sản phẩm</span>
                    <ul class="sp-l">
                    <?php foreach($question_pro as $k => $v){?>
                    	<li><a href="<?php echo base_url().'tu-van-hoi-dap/detail/'.$v->id.'/'.$v->title_link.'.html';?>" title="<?php echo $v->title;?>"><?php echo $v->title;?></a></li>                        
                    <?php }?>
                    </ul>
                </div>
                <?php }?>
                
                <?php if(isset($articles_pro) && $articles_pro !=null){?>
                <div class="b-left-sp">                
                	<span class="title">Bài viết liên quan</span>
                    <ul class="sp-l">                                        
                    <?php foreach($articles_pro as $k => $v){?>
                    	<?php if($k == 0) {?>
                    	<li class="top">
                        	<h2>
                        		<a href="<?php echo base_url().'tin-tuc-bai-viet/detail/'.$v->id.'/'.$v->title_link.'.html';?>" title="<?php echo $v->title;?>">
                        			<?php echo character_limiter($v->title,20);?>
                        		</a>
                        	</h2>
                        	<?php $img_path = $this->home_model->get_images_news($v->id);?>
                        	<?php if(isset($img_path) && $img_path != null) {?>
                            	<img src="<?php echo show_thumb($img_path[0]->img_path,'80-80');?>" title="<?php echo $v->title;?>" alt="<?php echo $v->title;?>" class="thumb" />
                            <?php } else {?>
                            	<img src="<?php echo img_link('no_image.gif');?>" title="<?php echo $v->title;?>" alt="<?php echo $v->title;?>" class="thumb" />
                            <?php }?>
                            <?php echo character_limiter($v->description,80);?>
                        </li>                    	
                     	<?php } else {?>
                     		<li>
                     			<a href="<?php echo base_url().'tin-tuc-bai-viet/detail/'.$v->id.'/'.$v->title_link.'.html';?>" title="<?php echo $v->title;?>"><?php echo character_limiter($v->title,30);?></a>
                     		</li>
                     	<?php }?>
                     <?php }?>                     
                    </ul>                
                </div>
                <?php }?>
               
                <div class="btn-download"><a href="#"><img src="<?php echo img_link('i-download.gif');?>" alt="" title="" /></a></div>
            </div>
            
            <div class="b-sanpham">
            	<?php if(isset($products_info) && $products_info != null) {?>            	
				<h1><?php echo $products_info[0]->name;?></h1>
                <div class="img-sp">
                	<?php $img_path = $this->home_model->get_images_products_by_product_id($products_info[0]->id);?>                	
                	<?php if(count($img_path) > 0) {?>
                	<?php foreach($img_path as $k => $v){?>
                	<?php if($k == 0) {?>                	
                		<span class="big-thumb"><img src="<?php echo show_thumb($v->img_path,'218-210');?>" id="big_thumps_pro" title="<?php echo $products_info[0]->name;?>" alt="<?php echo $products_info[0]->name;?>"/></span>
                	<?php } else if($k == 1) {?>
                    	<span class="small-thumb">
                    		<a href="#">
                    			<img src="<?php echo show_thumb($v->img_path,'80-80');?>" title="" alt="" onmouseover="show_big_thump('<?php echo show_thumb($v->img_path,'218-210');?>');"/>
                    		</a>
                    	</span>
                    <?php } else if($k == 2) {?>
                    	<span class="small-thumb">
                    		<a href="#">
                    			<img src="<?php echo show_thumb($v->img_path,'80-80');?>" title="" alt="" onmouseover="show_big_thump('<?php echo show_thumb($v->img_path,'218-210');?>');"/>
                    		</a>
                    	</span>
                    <?php } else if($k == 3) {?>
                    	<span class="small-thumb end">
                    		<a href="#">
                    			<img src="<?php echo show_thumb($v->img_path,'80-80');?>" title="" alt="" onmouseover="show_big_thump('<?php echo show_thumb($v->img_path,'218-210');?>');"/>
                    		</a>
                    	</span>
                    <?php }?>
                    <?php }?>
                    <?php }?>
                </div>
                <div class="infodetails">
                	<b>Mã hàng : <font color="#ed1b24"><?php echo $products_info[0]->code;?></font></b>
                    <p>
                    	<?php echo $products_info[0]->description;?>
                    </p>
                    <p>
                    	<span><font style="font-size:18px; font-weight:bold; color:#f0280c;">Giá: <?php echo format_type_money($products_info[0]->price);?> VNĐ</font> (Giá đã có VAT)<br />
						<b>Khuyến mại công lắp đặt</b></span>
                        <a href="<?php echo base_url().'dat-hang-lien-he/dat-hang/'.$products_info[0]->code;?>" class="book">Đặt hàng</a>
                    </p>
                    <div class="b-thongso">
                    	<table width="440" border="1">
                              <tr class="title">
                                <td colspan="2"><b>Thông số kỹ thuật</b></td>
                              </tr>
                              <tr>
                                <td>Hãng sản xuất</td>
                                <td><?php echo $products_info[0]->company_name;?></td>
                              </tr>
                              <tr>
                                <td>Bảo hành</td>
                                <td><?php echo $products_info[0]->warranty;?> năm</td>
                              </tr>
                              <tr>
                                <td>Xuất xứ</td>
                                <td><?php echo $products_info[0]->country;?></td>
                              </tr>
                              <tr>
                                <td>Loại điều hòa</td>
                                <td><?php echo $products_info[0]->product_type_name;?></td>
                              </tr>
                              <tr>
                                <td>Số chiều</td>
                                <td><?php echo $products_info[0]->dimension;?> chiều</td>
                              </tr>
                              <tr>
                                <td>Công năng sử dụng</td>
                                <td><?php echo $products_info[0]->utilities_name;?></td>
                              </tr>
                              <tr>
                                <td>Công suất điện</td>
                                <td><?php echo $products_info[0]->electric_power;?> BTU</td>
                              </tr>
                              <tr>
                                <td>Công suất lạnh</td>
                                <td><?php echo $products_info[0]->cool_power;?> BTU</td>
                              </tr>
                              <tr>
                                <td>Kích thước</td>
                                <td><?php echo $products_info[0]->size;?> (RxCxS)</td>
                              </tr>
                              <tr>
                                <td>Kích thước cục lạnh</td>
                                <td><?php echo $products_info[0]->cool_size;?> (RxCxS)</td>
                              </tr>
                               <tr>
                                <td>Kích thước cục nóng</td>
                                <td><?php echo $products_info[0]->hot_size;?> (RxCxS)</td>
                              </tr>
                              <tr>
                                <td>Trọng lượng cục lạnh</td>
                                <td><?php echo $products_info[0]->cool_weight;?> kg</td>
                              </tr>
                              <tr>
                                <td>Trọng lượng cục nóng</td>
                                <td><?php echo $products_info[0]->hot_weight;?> kg</td>
                              </tr>
                              <tr>
                                <td>Điện năng tiêu thụ</td>
                                <td><?php echo $products_info[0]->power_consumption;?></td>
                              </tr>
                              <tr>
                                <td>Khả năng hút ẩm</td>
                                <td><?php echo $products_info[0]->absorb_moisture;?></td>
                              </tr>
                              <tr>
                                <td>Tính năng</td>
                                <td><?php echo $products_info[0]->features;?></td>
                              </tr>
                            </table>
                    </div>                    
                </div>
                <?php }?>
                
                <?php if(isset($products_orther) && $products_orther != null) {?>
                <div class="recommen-sp">
                	<div class="title">
                    	<span class="left"><b style="color:#ed1b24;">Sản phẩm cùng công suất</b> Những dòng sản phẩm thông dụng & thân thiện môi trường, ....</span>
                        <span class="btn-page">
                        	<a href="#" onclick="sp.showPreviousPanel(1); return false;"><img src="<?php echo img_link('page-prev.gif');?>" title="" alt="Preview" /></a>
                        	<a href="#" onclick="sp.showNextPanel(1); return false;"><img src="<?php echo img_link('page-next.gif');?>" title="" alt="Next" /></a>
                        </span>
                    </div>
                    <ul class="splq"> 	                                                         
                    	<?php foreach($products_orther as $k => $v){?>		                    	
                    	<li>
                    		<?php $img_path = $this->home_model->get_images_products_by_product_id($v->id);?>
                    		<?php if($img_path != null) {?>
                    		<a href="<?php echo base_url().'gian-hang/detail/'.$v->id.'/'.$v->name_link.'.html';?>" title="<?php echo $v->name;?>">
                        		<img src="<?php echo show_thumb($img_path[0]->img_path,'100-67');?>" title="<?php echo $v->name;?>" alt="<?php echo $v->name;?>" />
                        	</a>
                        	<?php } else {?>
                        		<img src="<?php echo img_link('no_image.gif');?>" title="" alt="" />
                        	<?php }?>
                            <span class="info">
                                <a href="<?php echo base_url().'gian-hang/detail/'.$v->id.'/'.$v->name_link.'.html';?>" title="<?php echo $v->name;?>"><?php echo $v->name;?></a><br />
                                <b style="color:#f0280c;"><?php echo format_type_money($v->price);?> VNĐ</b>
                            </span>
                        </li>		                        
                      	<?php }?> 	                    	                                    	                     
                    </ul>
                </div>
                <?php }?>                
            </div>            		
        </div>